package com.twu.biblioteca;

/**
 * Created by Janu on 21/06/14.
 * enum Customer menu
 */
public enum CustomerMenu {

    LIST_BOOKS(1),
    RETURN_BOOK(2),
    CHECK_OUT_BOOK(3),
    LIST_MOVIES(4),
    RETURN_MOVIE(5),
    CHECK_OUT_MOVIE(6),
    CUSTOMER_INFORMATION(7),
    LOGOUT(8);

    private int option;


    CustomerMenu(int opt){
        this.option=opt;
    }

    public static String getMenu() {

        CustomerMenu[] options = CustomerMenu.values();

        String menu = "";

        for (CustomerMenu option : options) menu = menu + option.option + ". " + option.name() + "\n";

        return menu;

    }


}
